package cn.mineserv.video.videoordersystem.dao;

import cn.mineserv.video.videoordersystem.model.Media;
import cn.mineserv.video.videoordersystem.model.MediaExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MediaDao extends BaseMapper<Media> {
    long countByExample(MediaExample example);

    int deleteByExample(MediaExample example);

    List<Media> selectByExample(MediaExample example);

    int updateByExampleSelective(@Param("record") Media record, @Param("example") MediaExample example);

    int updateByExample(@Param("record") Media record, @Param("example") MediaExample example);

    int updateBatch(List<Media> list);

    int updateBatchSelective(List<Media> list);

    int batchInsert(@Param("list") List<Media> list);

    int insertOrUpdate(Media record);

    int insertOrUpdateSelective(Media record);
}